/**
 * 
 */
package com.siriusxm.www.mavencore.service;

import com.siriusxm.www.mavencore.dao.IUserDao;
import com.siriusxm.www.mavencore.domain.User;

/**
 * @author sbaral
 * 
 */
public class LoginService implements ILoginService {

	private IUserDao userDao;
	/*
	 * (non-Javadoc)
	 * 
	 * @see com.siriusxm.www.mavencore.service.ILoginService#login()
	 */
	@Override
	public User login(String username, String password) {
		return userDao.login(username, password);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.siriusxm.www.mavencore.service.ILoginService#register(com.siriusxm
	 * .www.mavencore.domain.User)
	 */
	@Override
	public void register(User user) {
		userDao.register(user);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.siriusxm.www.mavencore.service.ILoginService#modify(com.siriusxm.
	 * www.mavencore.domain.User)
	 */
	@Override
	public User modify(User user) {
		return userDao.modify(user);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.siriusxm.www.mavencore.service.ILoginService#delete(com.siriusxm.
	 * www.mavencore.domain.User)
	 */
	@Override
	public void delete(User user) {
		userDao.delete(user);
	}

	/**
	 * @param userDao the userDao to set
	 */
	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

}
